package jataaka.client;

import jataaka.command.URLCreatorCommand;
import jataaka.parser.ParserService;
import jataaka.parser.URLParser;
import java.io.IOException;
import java.util.ArrayList;
import java.util.HashMap;

/**
 * the jataaka parser client
 * 
 * @author Juan Carlos Cancela
 * 
 */
public class JataakaClient {

	public ArrayList<ArrayList<HashMap<String, String>>> execute(URLCreatorCommand c, ParserService p) {
		
		try {
			return (URLParser.parse(c, p));
		} catch (IOException e) {
			e.printStackTrace();
		}
		return null;
	}
}